# $Id$
#Maintainer: Jan de Groot <jgc@archlinux.org>

pkgname=scrnsaverproto
pkgver=1.2.2
pkgrel=2
pkgdesc="X11 Screen Saver extension wire protocol"
arch=('any')
license=('custom')
makedepends=('xorg-util-macros')
url="https://xorg.freedesktop.org/"
source=(${url}/releases/individual/proto/${pkgname}-${pkgver}.tar.bz2)
sha1sums=('640a2cbef5893aacda74799e6fa4d973e629b753')

build() {
  cd "${srcdir}/${pkgname}-${pkgver}"
  ./configure --prefix=/usr
  make
}

package() {
  cd "${srcdir}/${pkgname}-${pkgver}"
  make DESTDIR="${pkgdir}" install
  install -Dm644 COPYING "${pkgdir}/usr/share/licenses/${pkgname}/COPYING"
}
